<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html xmlns:ec="http://www.gensee.com/ec">
<head>
<meta charset="utf-8" />
<title>easy cast</title>
<script type="text/javascript" src="${staticFullPrefix }/static/easycast/sdk/js/ec.js"></script>
<script type="text/javascript">
	var room = GsEc.room();
	room.demand("launcherURL", function(any){
		alert("接收到："+any);
	});
	
	room.loadWidget(function(W){
	    W.widget.launchButton({
	    	'roomid': "${roomId}",
	        'uid': '${uId}', 
	        'uname': '${uName}', 
	        'id': "ec_client_launcher_container",
	        'authcode' : "212312"
	    });
	});
	room.loadWidget(function(W){
	    W.widget.downloadButton({
	    	'roomid': "${roomId}",
	        'uid': '姚晨', 
	        'uname': '姚晨',
	        'id': "ec_client_download_container",
	        'authcode' : "212312"
	    });
	});
	GsEc.loadWidget(function(W){
	    W.widget.videoPlayer({
	    	'roomid': "${roomId}",
	        'uid': '姚晨', 
	        'uname': '姚晨',
	        'id': "ec_video_container",
	        'authcode' : "212312",
	        'group':"group1"
	    });
	});
</script>
</head>
<body>
<div>
简易直播Sample<br/>
<div id="ec_client_launcher_container"></div>
<div id="ec_client_download_container"></div>
<div id="ec_video_container"></div>
</div>
</body>
</html>
